package com.fwj.mvc.controller;

import com.fwj.mvc.pojo.entity.UserEntity;
import com.fwj.mvc.service.UserService;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

import javax.annotation.Resource;

/**
 * 说明：
 * <p>
 * 作者： fwj
 * <p>
 * 时间： 2017/7/30  9:35
 */
@Controller
@RequestMapping(value = "user")
public class UserController {
    @Resource
    private UserService userService;

    @RequestMapping(value = "adduser", method = RequestMethod.GET)
    @ResponseBody
    public Object addUser(UserEntity userEntity) {
        return userService.addUser(userEntity);
    }
}
